<?php ob_start();
    include("mysql.php");

        $exh=mysql_query("SELECT * FROM `brand` ORDER BY `id` DESC");
    

    
    $a=1;
    
    while(!empty($exhi=mysql_fetch_assoc($exh))){
        $exh_url=$exhi['url'];
        $code=0;
        $data=array(
//            'exh_text'=>$exhi['text'],
            'exh_url'=>$exh_url
        );
        $ret=array(
            'code'=>$code,
            'data'=>$data,
        );
        header('Content-Type:application/json; charset=utf-8');
        if($a!=1){
                echo(',');
                echo(json_encode($ret,JSON_UNESCAPED_UNICODE));
            }
            else{
                echo('[');
                echo(json_encode($ret,JSON_UNESCAPED_UNICODE));
                $a--;
            }
    }
    echo(']');
?>
